GXGetPaperTypeDimensions
You can use theGXGetPaperTypeDimensions
function to obtain the page rectangle and the paper rectangle associated with a paper-type object.
void GXGetPaperTypeDimensions (gxPaperType aPaperType, gxRectangle *aPageSize, gxRectangle *aPaperSize);
aPaperType
A reference to the paper-type object from which to obtain page and paper sizes.aPageSize
- A pointer to a rectangle that receives the page size of the paper type.
aPaperSize
- A pointer to a rectangle that receives the paper size of the paper type.
DESCRIPTION
TheGXGetPaperTypeDimensions
function returns the page and paper size for the specified paper type in the geometry of rectangles. The page rectangle is the imageable portion of a page. The paper rectangle is the size of the paper. The geometry for each rectangle specifies the size in 72 dots-per-inch units. Passing anil
pointer for either theaPageSize
or theaPaperSize
parameters causes QuickDraw GX to ignore the parameter.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found, or there was not enough memory to load it. gxPaperTypeNotFound
The paper-type object cannot be located. SEE ALSO
For an example that uses theGXGetPaperTypeDimensions
function, see "Obtaining the Dimensions of a Paper Type" on page 4-33.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help